package statistics.poznavaniTextu;

import java.awt.*;
import java.io.Serializable;

/*
*   File PointBasen
*   in package statistics.poznavaniTextu
*   was created by slaha
*   on 27.4.12 at 16:37.
*
*/
public class PointBasen implements Serializable {
  String jmenoBasne;
  public double x, y;

  /**
   * Constructs and initializes a point at the specified
   * {@code (x, y)} location in the coordinate space.
   *
   * @param x the X coordinate of the newly constructed <code>Point</code>
   * @param y the Y coordinate of the newly constructed <code>Point</code>
   * @since 1.0
   */
  public PointBasen(double x, double y, String jmenoBasne) {
    super();
    this.x = x;
    this.y = y;
    this.jmenoBasne = jmenoBasne;
  }

  /**
   * Constructs and initializes a point at the specified
   * {@code (x, y)} location in the coordinate space.
   *
   * @param x the X coordinate of the newly constructed <code>Point</code>
   * @param y the Y coordinate of the newly constructed <code>Point</code>
   * @since 1.0
   */
  public PointBasen(int x, int y, String jmenoBasne) {
    this.x = x;
    this.y = y;
    this.jmenoBasne = jmenoBasne;
  }

  public PointBasen(double x, double y) {
    this.x = x;
    this.y = y;
    this.jmenoBasne = null;
  }

  public String getJmenoBasne() {
    return jmenoBasne;
  }
}
